﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using Dynamitey.DynamicObjects;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 钉钉用户
    /// </summary>
    public class DD_UserDTO
    {
        public int errcode { get; set; }
        public string errmsg { get; set; }
        public string request_id { get; set; }
        public Result result { get; set; }
        public class Result
        {
            public bool has_more { get; set; }
            /// <summary>
            /// 用户列表
            /// </summary>
            public List<User> list { get; set; }
            public string parent_id { get; set; }
        }

        public class User
        {
            /// <summary>
            /// ID
            /// </summary>
            public string ID { get; set; }
            /// <summary>
            /// 是否启动
            /// </summary>
            public bool active { get; set; }
            /// <summary>
            /// 是否管理员
            /// </summary>
            public bool admin { get; set; }
            /// <summary>
            /// 头像
            /// </summary>
            public string avatar { get; set; }
            /// <summary>
            /// 是否老板
            /// </summary>
            public bool boss { get; set; }
            /// <summary>
            /// 部门列表
            /// </summary>
            public List<long> dept_id_list { get; set; }

            public string dept_id_list_s { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public long dept_order { get; set; }
            /// <summary>
            /// 是否私人账户
            /// </summary>
            public bool exclusive_account { get; set; }
            /// <summary>
            /// 扩展
            /// </summary>
            public string extension { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public bool hide_mobile { get; set; }
            public bool leader { get; set; }
            public string mobile { get; set; }
            /// <summary>
            /// 用户名称
            /// </summary>
            public string name { get; set; }
            /// <summary>
            /// 状态码
            /// </summary>
            public string state_code { get; set; }
            /// <summary>
            /// 职位
            /// </summary>
            public string title { get; set; }
            public string unionid { get; set; }
            /// <summary>
            /// 用户ID
            /// </summary>
            public string userid { get; set; }


        }
    }
   
}
